﻿<controls:ChildWindow x:Class="VAdvantage.Framework.ValuePreference"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" Title="ValuePreference" 
                      xmlns:my="clr-namespace:VAdvantage.Controls" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"   Loaded="ChildWindow_Loaded">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="0" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="40" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="15" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button Height="35" HorizontalAlignment="Left" Margin="0,3,0,0" Name="ibtnDelete" VerticalAlignment="Top" Width="35" Grid.Row="5" Click="ibtnDelete_Click"> 
        <Image Stretch="Fill" Source="/VAdvantage;component/Images/delete_attachment.png" />
        </Button>

        <StackPanel Margin="3" HorizontalAlignment="Right" Grid.Column="6" Grid.ColumnSpan="2" Grid.Row="5" Orientation="Horizontal" >
        <Button Height="35"  Name="ibtnCancel" VerticalAlignment="Top" Width="35"   Click="ibtnCancel_Click">
        <Image  Source="/VAdvantage;component/Images/cancel_up.png" Stretch="Fill"  />
        </Button>
        <Button Height="35" Name="ibtnOK" VerticalAlignment="Top" Width="35"  Click="ibtnOK_Click">
        <Image Source="/VAdvantage;component/Images/right_up.png" Stretch="Fill"  />
        </Button>
        </StackPanel>
        <my:VCheckBox Margin="5,5,5,5" Content="Tenant" Grid.Row="3" HorizontalAlignment="Left"  x:Name="vchkTenant" VerticalAlignment="Center" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" FlowDirection="LeftToRight" Grid.Column="1" Checked="vchk_CheckedChanged" Unchecked="vchk_CheckedChanged" />
        <my:VCheckBox Margin="5,5,5,5" Content="Organisation" Grid.Column="3" Grid.Row="3" HorizontalAlignment="Left"  x:Name="vchkOrg" VerticalAlignment="Center" Unchecked="vchk_CheckedChanged" Checked="vchk_CheckedChanged" />
        <my:VCheckBox Margin="5,5,5,5" Content="User/Contact" Grid.Column="4" Grid.Row="3" HorizontalAlignment="Left"  x:Name="vchkUser" VerticalAlignment="Center" Checked="vchk_CheckedChanged" Unchecked="vchk_CheckedChanged"  />
        <my:VCheckBox Margin="5,5,5,5" Content="Window" Grid.Column="5" Grid.Row="3" HorizontalAlignment="Left"  x:Name="vchkWindow" VerticalAlignment="Center" Unchecked="vchk_CheckedChanged" Checked="vchk_CheckedChanged"  />
        <my:VTextBox Margin="5,5,5,5" Grid.Row="1" Height="23" x:Name="vtxtAttribute" VerticalAlignment="Center" Width="344" HorizontalAlignment="Left" IsReadOnly="True" Grid.Column="1" Grid.ColumnSpan="5" />
        <my:VTextBox Margin="5,5,5,5" Grid.ColumnSpan="5" Grid.Row="2" Height="23" HorizontalAlignment="Left" x:Name="vtxtSearchKey" VerticalAlignment="Center" Width="345" IsReadOnly="True" Grid.Column="1" />
        <my:VLabel Margin="5,5,5,5" Grid.Column="6" Grid.Row="1"   HorizontalAlignment="Stretch"  x:Name="vlblAttribute" VerticalAlignment="Center"  Content="Attribue" Grid.ColumnSpan="2"  />
        <my:VLabel Margin="5,5,5,5" Grid.Column="6" Grid.Row="2"   HorizontalAlignment="Stretch" x:Name="vlblValue" VerticalAlignment="Center"  Content="Attribue" Grid.ColumnSpan="2"  />
        <my:VLabel Margin="5,5,5,5" HorizontalAlignment="Right"  x:Name="label1" VerticalAlignment="Center" Content="Extra label" Visible="False" />
        <my:VLabel Margin="5,5,5,5" Grid.Row="1" HorizontalAlignment="Right" x:Name="vlblAttributeText" VerticalAlignment="Center" Content="Attribue" />
        <my:VLabel Margin="5,5,5,5" Grid.Row="2" HorizontalAlignment="Right" x:Name="vlblValueText" VerticalAlignment="Center" Content="Search Key" />
        <my:VLabel Margin="5,5,5,5" Grid.Row="3" HorizontalAlignment="Right" x:Name="vlblLevelText" VerticalAlignment="Center" Content="For Label" />
        <my:VLabel Margin="5,5,59,0" Grid.Column="1" Grid.ColumnSpan="6" Grid.Row="4"  x:Name="vlblMsg" VerticalAlignment="Top" Content="Document Noggggggggggggggggggggggggggggggggggggggggg" />
    </Grid>
</controls:ChildWindow>